import { defineStore } from 'pinia'
export const footerStore = defineStore('footerStore', {
	//定义state
	state: () => {
		return {
			isShow: true //false 团圆   true团长
		}
	},
	//定义getters
	getters: {
		getIshow: (state) => {
			return state.isShow
		}
	},
	//定义actions
	actions: {
		setIshow(n:boolean) {
			this.isShow = n;
		}
	},
	persist: {
		enabled: true,
		strategies: [{ storage: localStorage, paths: ['isShow'] }]
	}
})
